import { defineStore } from 'pinia'
import { getHomeVideoList } from '../api/hjx/hjxApi'

export let videoStore = defineStore('homevideo',{
    state:()=>{
        return {
            videoList:[]
        }
    },
    actions:{
        async getHomeVideo(){
           let videos = await getHomeVideoList()
           console.log(videos);
           
           this.videoList = videos
        }
    }
})
